﻿using System.ComponentModel.DataAnnotations;

namespace Model.DTO.User
{
    /// <summary>
    /// 用户登录DTO
    /// </summary>
    public class UserLoginDTO
    {
        /// <summary>
        /// 用户名(16)
        /// </summary>
        [Required(ErrorMessage = "用户名不能为空")]
        public string UserName { get; set; }
        /// <summary>
        /// 密码(256)
        /// </summary>
        [Required(ErrorMessage = "密码不能为空")]
        public string Password { get; set; }
        /// <summary>
        /// 验证码
        /// </summary>
        [Required(ErrorMessage = "验证码不能为空")]
        public string Captcha { get; set; }
        /// <summary>
        /// AppId
        /// </summary>
        [Required(ErrorMessage = "AppId不能为空")]
        public string AppId { get; set; }
    }
}
